package com.glela.live.messages;

import com.glela.live.util.GsonUtil;

/**
 * Created by jinweiwei on 2018/4/23.
 */
public class RedPackageMessage extends BaseMessage{

    private int showFlag = 1;

    private int redPackageId;

    public int getRedPackageId() {
        return redPackageId;
    }

    private User user =  new User("-1","-1","");

    public int getShowFlag() {
        return showFlag;
    }

    private transient static final String TYPE = "XP:RedPackage";
    @Override
    public String getType() {
        return TYPE;
    }

    public User getUser() {
        return user;
    }

    public RedPackageMessage(int redPackageId){
        this.redPackageId=redPackageId;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, RedPackageMessage.class);
    }
}
